<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>demo</title>
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 1rem;
            height: 1rem;
            background-color: green;
        }

        /******页面初始化完成前隐藏********/
        [l-hide] {
            display: none;
        }
    </style>
</head>
<body>

<div class="box" l-hide></div>

<script type="text/javascript" src="./flexible.js"></script>
<script type="text/javascript">
    var flexible = new Flexible({
        // 基准大小 1rem = 100px (方便换算)
        baseSize: 100,
        // 最大调节宽度 (超出此宽度不在调节根标签字体大小)
        maxWidth: 750,
        // 设计稿宽度   
        designWidth: 375,
        // 隐藏属性名 (页面初始化完成前隐藏)
        hideAttr: "l-hide",
    });
</script>
</body>
</html>